package com.atguigu05._super.exer3;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/28 13:53
 * @Version 1.0
 */
public class AccountTest {
    public static void main(String[] args) {
        Account acct = new Account(1122,20000,0.045);

        acct.withdraw(30000);
        System.out.println("你的余额为"+acct.getBalance());


        acct.withdraw(2500);
        acct.deposit(3000);
        System.out.println("你的余额为"+acct.getBalance());

        System.out.println("月利率为： "+acct.getAnnuallnterestRate());
    }

}
